package leetcode.easy.limit200;

public class LcrNo182 {
    public static void main(String[] args) {

    }

    public String dynamicPassword(String password, int target) {
        StringBuilder stringBuilder = new StringBuilder();
        stringBuilder.append(password, target, password.length());
        stringBuilder.append(password, 0, target - 1);

        return stringBuilder.toString();
    }

    public String dynamicPassword1(String password, int target) {
        return (password + password).substring(target, password.length());
    }
}
